//复制文件
const fs = require('fs');

//创建对象
const rs = fs.createReadStream('./file/刻意练习.mp3');
const ws = fs.createWriteStream('./file/法宝.mp3');

//读取数据
// rs.on('data', chunk => {
//     ws.write(chunk);
// });


//pipe 管道
rs.pipe(ws);

